//{==================================================================================================
//! @file "defines.h"
//! @date 2013-11-09
//! @mainpage Header with important deffines declaration
//! @author Kirill Shcherbatov <kshcherbatov@gmail.com>
//! @version 2.0
//}===================================================================================================

//****************************************************************************************************
#define OUT_DEVICE stdout
#define IN_DEVICE stdin
//****************************************************************************************************

//****************************************************************************************************
#include <stdio.h>
#include <assert.h>
//****************************************************************************************************

//****************************************************************************************************
#define OUT if (use_debug_out) printf

#ifdef DEBUG
    #define RETURN_ASSERT( CONDITIONAL ) assert (CONDITIONAL);
	#define RETURN_ASSERT_N( CONDITIONAL ) assert (CONDITIONAL);    

#else
      #define RETURN_ASSERT( CONDITIONAL )  \
        if (!(CONDITIONAL))                 \
        {                                   \
            return 1;                       \
        }
     #define RETURN_ASSERT_N( CONDITIONAL ) \
        if (!(CONDITIONAL))                 \
        {                                   \
            return 0;                       \
        }
#endif

//****************************************************************************************************
